﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="admin.ascx.cs" Inherits="admin" %>
<%@ Register Assembly="prodamo" Namespace="Jungle.Prodamo.Admin.WebControls" TagPrefix="PAC" %>
<asp:MultiView ID="AdvertMenu" runat="server" >
    <asp:View ID="v_Rybriks" runat="server">
        <PAC:Rubriks ID="rblist1" runat="server" />
    </asp:View>
    <asp:View ID="v_AddAdvert" runat="server" >
        <table class="advm_table">
    <tr>
        <td colspan="2" class="advm_td">Добавление объявления</td>
    </tr>
    <tr>
        <td>Рубрика</td>
        <td>
            <asp:DropDownList ID="ddl_Rubrik" runat="server" >
            </asp:DropDownList>
        </td>
    </tr>      
    <tr>
        <td>Заголовок</td>
        <td>
            <asp:TextBox id="tb_Title" runat="server" />
        </td>
    </tr>                   
    <tr>
        <td>Тип объявления</td>
        <td>
            <asp:DropDownList ID="ddl_Type" runat="server" >
                <asp:ListItem Value="0" Text="Продажа" />
                <asp:ListItem Value="1" Text="Покупка" />
                <asp:ListItem Value="2" Text="Обмен" />
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>Срок размещения</td>
        <td>
            <asp:DropDownList ID="ddl_Time" runat="server" >
                <asp:ListItem Value="7" Text="1 неделя" />
                <asp:ListItem Value="14" Text="2 недели" />
                <asp:ListItem Value="30" Text="1 месяц" />
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>Цена</td>
        <td>
            <asp:TextBox id="tb_Price" style="width: 40px;" runat="server" />
            <asp:DropDownList ID="ddl_Currency" runat="server" >
                <asp:ListItem Text="грн." Value="0" />
                <asp:ListItem Text="евро" Value="1" />
                <asp:ListItem Text="доллар" Value="2" />
            </asp:DropDownList>
        </td>
    </tr>              
    <tr>
        <td>
            Текст объявления<br/>
            <div class="advm_note">до 1000 символов</div>
        </td>
        <td>
            <asp:TextBox ID="tb_Body" TextMode="MultiLine" Rows="10" runat="server" />
        </td>
    </tr>
    <tr>
        <td>Пользователь</td>
        <td>
            <asp:DropDownList ID="ddl_users" runat="server" />
        </td>
    </tr> 
     <tr>
        <td>Изображение товара</td>
        <td width="299px">
            <asp:FileUpload ID="fu_Image" runat="server" />
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <asp:Button ID="btn_AddAdvert" OnClick="AddAdvert" Width="100" Text="Готово" runat="server" />
            <div id="ValidBlock" style="font-weight: bold;" runat="server"></div>
        </td>
    </tr>
</table>
    </asp:View>
    <asp:View id="v_ByRubrik" runat="server">
        <asp:HyperLink id="hp_Back" NavigateUrl="~/admin/Modules.aspx?mod=Adverts&cmd=default" Text="Назад" runat="server" />
        <PAC:ByRubriks ID="ByRubrik1" runat="server" />
        <asp:HyperLink ID="hp_AddAdvert" NavigateUrl="~/admin/Modules.aspx?mod=Adverts&cmd=Add" Text="Добавить VIP объявление" runat="server" />
    </asp:View>
</asp:MultiView>

<asp:Table ID="delForm"  HorizontalAlign="Center" Visible="false" style="position:absolute; z-index: 50; left:35%; top: 30%; width: 25%; height: 10%; background-image: url('../Admin/img/fon.jpg'); background-repeat: none;" runat="server">
<asp:TableRow ID="TableRow1" runat="server"><asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Center" ForeColor="#FFFFFF" Font-Bold="true" Font-Size="10" style="padding: 10px;">
Вы действительно хотите удалить? <p>
<asp:ImageButton ID="yes" ImageUrl="~/Admin/img/but_yes.jpg" style="margin-top: 4px; margin-right: 4px;" OnClick="yesDel" runat="server"/>
<asp:ImageButton ID="no" ImageUrl="~/Admin/img/but_no.jpg" style="margin-top: 4px; margin-left: 4px;" OnClick="noDel" runat="server"/>
</asp:TableCell></asp:TableRow> 
</asp:Table>